package com.briup.oagg.facade.service.production.impl;

import com.briup.framework.utils.execption.BriupAssert;
import com.briup.framework.utils.execption.BriupFrameworkException;
import com.briup.oagg.facade.service.production.IProductionModelService;
import com.briup.oagg.facade.web.rest.model.ModelTrainConfigRestService;
import com.briup.oagg.facade.web.rest.production.ProductionModelRestService;
import com.briup.oagg.facade.web.vm.model.ModelTrainConfigVM;
import com.briup.oagg.facade.web.vm.production.PageInfoVM;
import com.briup.oagg.facade.web.vm.production.PredictDataVM;
import com.briup.oagg.facade.web.vm.production.ProductionModelVM;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVParser;
import org.apache.commons.csv.CSVPrinter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

/**
 * 生产模型信息业务逻辑接口实现类
 *
 * @author briup
 */
@Service
public class ProductionModelServiceImpl implements IProductionModelService {

    @Override
    public void deleteByModelId(String modelId) {

    }

    @Override
    public byte[] predict(String modelId, MultipartFile dataFile) {
        return new byte[0];
    }

    @Override
    public PageInfoVM<ProductionModelVM> findByPage(String modelType, Integer pageNum, Integer pageSize) {
        return null;
    }
}
